using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_AUCTION_LIST_RESULT_DEF : DefinitionBase
    {
        
        public override bool Process()
        {
            return true; //WHEN YOU NEED IT ONLY
            ResetPosition();

            UInt32 count = ReadUInt32();

            for (int i = 0; i < count; i++)
            {
                UInt32 auctionid = ReadUInt32();
                UInt32 itemid = ReadUInt32();                   //OBJECT_FIELD_ENTRY;

                for (int j = 0; j < 6; j++)
                {
                    UInt32 EnchantmentId = ReadUInt32();
                    UInt32 EnchantmentDuration = ReadUInt32();
                    Int32 EnchantmentCharges = ReadInt32();
                }

                UInt32 ItemRandomPropertyId = ReadUInt32();     //random item property id
                UInt32 ItemSuffixFactor = ReadUInt32();         //SuffixFactor
                UInt32 Count = ReadUInt32();
                UInt32 SpellCharges = ReadUInt32();
                UInt32 unk2 = ReadUInt32();                     //Unknown
                UInt32 auction_owner = ReadUInt32();            //Auction->owner
                UInt32 unk3 = ReadUInt32();                     //player high_guid
                UInt32 auction_startbid = ReadUInt32();         //Auction->startbid (not sure if useful)
                UInt32 auction_bid = ReadUInt32();
                //minimal outbid
                UInt32 auction_buyout = ReadUInt32();
                UInt32 auction_time = ReadUInt32();             //time left
                UInt32 auction_bidder = ReadUInt32();
                UInt32 unk4 = ReadUInt32();                     //player high_guid
                UInt32 auction_currentbid = ReadUInt32();       //current bid
            }

            UInt32 totalcount = ReadUInt32();
            UInt32 constvalue = ReadUInt32();

            return Validate();
        }

    }
}
